function dispatcher(action, $local){
    DEBUG("dispatcher:"+action.name+"."+action.type);
    var act = M.require(action.name);
    var result;
    if(action.args!= null && action.args != undefined){
        result = act[action.type].apply($local,action.args);
    }else{
        result = act[action.type].call($local);
    }
    return result;
}

